package com.wg.spring.controler;

import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

//@Controller
@RestController
@Reference
//@RequestMapping("member/member")
public class environmentController {

    @Value("${coupon.user.name}")
    private String name;

    @RequestMapping(value = "/say")
    @ResponseBody
    public String say() throws InterruptedException {
//        Thread.sleep(2000);
//        return  "haha";
        return  name;
    }
}
